package CommonGui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class KeysDigits extends JPanel  {

	private JPanel panel1;
	private JPanel panel2;
	private JPanel panel3;
	private JPanel panel4;
	private JPanel panel5;
	private JPanel panel6;


	public TranslateDigits T;

		 public KeysDigits()
		 {
			super();
			setBackground(new Color(210, 180, 140));
			GridLayout grid =new GridLayout(4, 3, 7, 7);
			this.setLayout(grid);
			T=new TranslateDigits();
			initialize();
		 }
		 
		 


			private void initialize()
			{
				
			T.st=new String("");
			T.TextField=new JTextField();
			T.key=new JButton[12];
			T.TextField.setPreferredSize(new Dimension(300,60));
			T.CAPS=1;
			T.init();
			
			
			for(int i=0;i<12;i++)
				
			{	
				T.key[i].setPreferredSize(new Dimension(55,55));
				T.key[i].setFont(new Font("Tahoma", Font.BOLD, 15));
				this.add(T.key[i]);
				
			}
			
			
				
			
			
		      setVisible(true);
		      if (T.TextField!=null)
		       T.listen();
		}



	}

